import 'package:flutter/material.dart';

void main() => runApp(GTTipsView());
enum TipsType {
  TIPS_TYPE_DEFAULT,
  TIPS_TYPE_INFO,
  TIPS_TYPE_WARNING,
  TIPS_TYPE_ERROR,
}
class GTTipsView extends StatelessWidget {
   GTTipsView({
    Key? key,
    this.text,
    this.tipsType
  }) : super(key: key);

  final String? text;
   int? tipsType = TIPS_TYPE_DEFAULT;



  static const int TIPS_TYPE_DEFAULT = 0;
  static const int TIPS_TYPE_INFO = 1;
  static const int TIPS_TYPE_WARNING = 2;
  static const int TIPS_TYPE_ERROR = 3;


  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Row(
          children: [
            // IconFont(
            //   text: "\ue798",
            //   textColor: Colors.blue,
            //   textSize: 16,
            // ),
            Expanded(
              child: Text(
                text ?? '',
                style: const TextStyle(
                  color: Colors.black,
                  fontSize: 12,
                  height: 1.3,
                ),
              ),
            ),
            Row(
              children: const [
                Text(
                  "Button",
                  style: TextStyle(
                    fontWeight: FontWeight.bold,
                    fontSize: 12,
                  ),
                ),
                // GateIconFont(
                //   text: "Icon",
                //   textSize: 12,
                // ),
              ],
            ),
            // GateIconFont(
            //   text: "Suffix",
            //   textSize: 12,
            // ),
          ],
        ),
        Row(
          mainAxisAlignment: MainAxisAlignment.end,
          children: const [
            Text(
              "Button",
              style: TextStyle(
                fontWeight: FontWeight.bold,
                fontSize: 12,
              ),
            ),
            // GateIconFont(
            //   text: "Icon",
            //   textColor: Colors.grey,
            //   textSize: 12,
            // ),
          ],
        ),
      ],
    );
  }
}
